docs: Update Universal Story to include module map - #7739
Conversation
|
@alxhub can you have a look? |
03e79f6 to
e12c3a5
Compare
| // Build to dist-server instead of dist. This prevents | ||
| // client and server builds from overwriting each other. | ||
| "outDir": "dist-server", | ||
| "outDir": "dist/dist-server", |
There was a problem hiding this comment.
Bad idea to put the Universal files in the same directory as normal build, I've tried this option and it causes issues. Better stay in another directory.
There was a problem hiding this comment.
Thanks for the suggestion @cyrilletuzi I'll apply those changes now 😄 Just out of curiosity what are the issues caused by having it within the dist?
There was a problem hiding this comment.
I don't remember exactly, but good chances it was a problem of wrong import paths (as it's in a subdirectory) or a conflict on some building steps as files are in the same main directory.
6b9d58a to
e287e8b
Compare
e287e8b to
3af138f
Compare
@nguniversal/module-map-ngfactory-loader has been release and with it, support for Lazy loading! This PR updates the existing story to guide users how they can use this functionality.
4c86c34 to
b17a484
Compare
|
I used this answer, it is about firebase deploy, but main logic is simple https://hackernoon.com/deploy-angular-universal-w-firebase-ad70ea2413a1 |
|
Overwritten by #7803 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
@nguniversal/module-map-ngfactory-loaderhas been release and with it, support for Lazy loading!This PR updates the existing story to guide users how they can use this functionality.
Closes: #7706